package com.graduate.service;

import com.graduate.po.User;

import java.util.List;

public interface UserService {
    //根据id个更新用户信息
    void updataById(Integer id, User user) throws Exception;

    //根据id删除用户信息
    void removeById(Integer id) throws Exception;

    //获取分页查询用户信息
    List<User> findByPaging(Integer toPageNo) throws Exception;

    //保存用户信息
    Boolean save(User user) throws Exception;

    //获取用户总数
    int getUserCount() throws Exception;

    //根据id获取用户信息
    User findById(Integer id) throws Exception;

    //根据名字模糊查询
    List<User> findByName(String name) throws Exception;

}
